package com.xajh.duoduo.impl.process;

import com.xajh.duoduo.abs.AbsProcessor;
import com.xajh.duoduo.eunm.process.ProcessEnum;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Service;

/**
 * 加入帮派
 */
@Service
public class JoinFactionProcessor extends AbsProcessor implements InitializingBean {
    @Override
    public boolean process() {
        System.out.println("JoinFactionProcessor");
        System.out.println("globleId: " + globleId);

        return true;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        this.group = ProcessEnum.JOIN_FACTION.getType();
        this.globleId = this.generateGlobleId();
    }
}
